<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <%@include file="/static/common/commonHead.jsp" %>
    <script type="text/javascript" src="/static/js/studentofficial/studentofficial.js"></script>
</head>
<body>
<%--工具栏--%>
<div id="tools">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reloadList">刷新</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="see">查看</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true" data-cmd="changeClass">转班</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true" data-cmd="quit">休学/复学</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true" data-cmd="lost">流失</a>
    班级:<input class="easyui-combobox" name="classNameId" id="classNameId"
              data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/class/selectAll.do'">
    入学时间:<input class="easyui-datebox" id="beginDate">~
    <input class="easyui-datebox" id="endDate">
    <input class="easyui-textbox" id="keyword" prompt="姓名关键字" name="keyword">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="searchs"></a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-print'"
       onclick="window.open('/studentofficial/exportXls.do')">导出</a>
    </form>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="sendMsg">追收学费</a>
</div>

<%--表格--%>
<table id="studentOfficial_list"></table>

<%--编辑页面--%>
<div id="studentOfficial_dialog">
    <form id="studentOfficial_form" method="post">
        <table align="center" style="margin-top: 20px">
            <input type="hidden" name="clientName.id"/>
            <table align="center" style="margin-top: 20px">
                <input type="hidden" name="id"/>

                <tr>
                    <td>
                        <font style="color: #0c80d7;">基本信息</font>
                    </td>
                </tr>
                <tr>
                    <td>姓名：</td>
                    <td>
                        <input name="clientName.name" class="easyui-textbox">
                        <input name="clientName_id" type="hidden" class="easyui-textbox">
                    </td>
                    <td>QQ：</td>
                    <td>
                        <input id="qq" class="easyui-textbox" name="qq">
                    </td>
                    <td>入学时间：</td>
                    <td>
                        <input id="admissionDate" class="easyui-datebox" name="admissionDate">
                    </td>
                </tr>
                <tr>
                    <td>来源：</td>
                    <td>
                        <input id="source" class="easyui-combobox" name="source.id"
                        data-options="panelHeight:'auto',valueField:'id',textField:'name',
                        url:'/systemDictionaryItem/getItemBySn.do?sn=source'" />
                    </td>
                    <td>年龄：</td>
                    <td>
                        <input id="age" class="easyui-textbox" name="age">
                    </td>
                    <td>性别：</td>
                    <td>
                        <input id="gender" class="easyui-textbox" name="gender">
                    </td>
                </tr>
                <tr>
                    <td>电话：</td>
                    <td>
                        <input id="tel" class="easyui-textbox" name="tel">
                    </td>
                    <td>地址：</td>
                    <td>
                        <input id="address" class="easyui-textbox" name="address">
                    </td>
                    <td>邮箱：</td>
                    <td>
                        <input id="email" class="easyui-textbox" name="email">
                    </td>
                </tr>
                <tr>
                    <td>学历：</td>
                    <td>
                        <input id="edubackground" class="easyui-combobox" name="edubackground.id"
                        data-options="panelHeight:'auto',valueField:'id',textField:'name',
                            url:'/systemDictionaryItem/getItemBySn.do?sn=edubackground'"/>
                    </td>
                    <td>学校：</td>
                    <td>
                        <input id="school" class="easyui-textbox" name="school">
                    </td>
                    <td>专业：</td>
                    <td>
                        <input id="major" class="easyui-textbox" name="major">
                    </td>
                </tr>
                <tr>
                    <td>外语水平：</td>
                    <td>
                        <input id="foreignlevel" class="easyui-combobox" name="foreignlevel.id"
                               data-options="panelHeight:'auto',valueField:'id',textField:'name',
                               url:'/systemDictionaryItem/getItemBySn.do?sn=foreignlevel'" />
                    </td>
                    <td>工作年限：</td>
                    <td>
                        <input id="workingTime" class="easyui-textbox" name="workingTime">
                    </td>
                    <td>所在班级：</td>
                    <td>
                        <input id="className" class="easyui-combobox" name="classname.id"
                        data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/class/selectAll.do?'" />
                    </td>
                </tr>
                <tr>
                    <td>付款方式：</td>
                    <td>
                        <input id="payType" class="easyui-combobox" name="payType.id"
                               data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/systemDictionaryItem/getItemBySn.do?sn=payType'" />
                    </td>
                    <td>客户类型：</td>
                    <td>
                        <input id="clientType" class="easyui-combobox" name="clientType.id"
                               data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/systemDictionaryItem/getItemBySn.do?sn=clientType'" >
                    </td>
                    <td>状态：</td>
                    <td>
                        <input id="clientState" class="easyui-combobox" name="clientState.id"
                                data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/systemDictionaryItem/getItemBySn.do?sn=clientState'">
                    </td>
                </tr>
                <tr>
                    <td>营销人员：</td>
                    <td>
                        <input id="saleman" class="easyui-combobox" name="saleman.id"
                               data-options="panelHeight:'auto',valueField:'id',textField:'username',url:'/employee/selectAllSalesman.do'" />
                    </td>
                    <td>所在校区：</td>
                    <td>
                        <input id="campus" class="easyui-combobox" name="campus.id"
                        data-options="panelHeight:'auto',valueField:'id',textField:'name',url:'/systemDictionaryItem/getItemBySn.do?sn=campus'" />
                </tr>
                <tr>
                    <td>
                        <font style="color: #0c80d7;">缴费信息</font>
                    </td>
                </tr>
                <tr>
                    <td>计划学费：</td>
                    <td>
                        <input id="planTuition" class="easyui-textbox" name="planTuition">
                    </td>
                    <td>优惠金额：</td>
                    <td>
                        <input id="discountAmount" class="easyui-textbox" name="discountAmount">
                    </td>
                    <td>总学费：</td>
                    <td>
                        <input id="totalAmount" class="easyui-textbox" name="totalAmount">
                    </td>
                </tr>
                <tr>
                    <td>其他学费：</td>
                    <td>
                        <input id="otherCost" class="easyui-textbox" name="otherCost">
                    </td>
                    <td>其他优惠：</td>
                    <td>
                        <input id="otherDiscount" class="easyui-textbox" name="otherDiscount">
                    </td>
                    <td>优惠说明：</td>
                    <td>
                        <input id="discountDesc" class="easyui-textbox" name="discountDesc">
                    </td>
                </tr>
                <tr>
                    <td>已付学费：</td>
                    <td>
                        <input id="payFit" class="easyui-textbox" name="payFit">
                    </td>
                    <td>还欠学费：</td>
                    <td>
                        <input id="waitingFit" class="easyui-textbox" name="waitingFit">
                    </td>
                    <td>最后付款时间：</td>
                    <td>
                        <input id="lastPaymentDate" class="easyui-datebox" name="lastPaymentDate">
                    </td>
                </tr>
                <tr>
                    <td>预付学费：</td>
                    <td>
                        <input id="prePaidTuition" class="easyui-textbox" name="paidTuition">
                    </td>
                    <td>缴费状态：</td>
                    <td>
                        <select id="payState" panelHeight="auto" class="easyui-combobox" name="payState"
                                style="width:162px;">
                            <option value="0">未缴清</option>
                            <option value="1">已缴清</option>
                        </select>
                    </td>
                </tr>
            </table>
        </table>
    </form>
</div>

<div id="changeClass_dialog">
    <form id="changeClass_form" method="post">
        <table align="center" style="margin-top: 20px">
            <input type="hidden" name="clientname.id">
            <tr>
                <td>旧班级：</td>
                <td>
                    <input name="id" type="hidden">
                    <input class="easyui-textbox" name="classname.name" readonly>
                </td>
            </tr>
            <tr>
                <td>新班级：</td>
                <td>
                    <input class="easyui-combobox" name="newclassId"
                    data-options="panelHeight:'auto',valueField:'id',textField:'name',
                                    url:'/class/selectAll.do?'">
                </td>
            </tr>
        </table>
    </form>
</div>
<%--短信弹框--%>
<div id="msgDialog">
    <form id="sendMsg_form" method="post">
        <table align="center" style="margin-top: 20px">
            <input type="hidden" name="id"/>
            <tr>
                <td>姓名：</td>
                <td>
                    <input id="msgName" name="clientName.name" class="easyui-textbox" />
                </td>
            </tr>

            <tr>
                <td>电话：</td>
                <td>
                    <input id="sendTel" class="easyui-textbox" name="tel">
                </td>
            </tr>
            <tr>
                <td>所在班级：</td>
                <td>
                    <input id="msgClass" class="easyui-textbox" name="classname.name" />
                </td>
            </tr>

            <tr>
                <td>已付学费：</td>
                <td>
                    <input id="msgPayFit" class="easyui-textbox" name="payFit">
                </td>
            </tr>

            <tr>
                <td>还欠学费：</td>
                <td>
                    <input id="msgWwaitingFit" class="easyui-textbox" name="waitingFit">
                </td>
            </tr>

            <tr>
                <td>最后付款时间：</td>
                <td>
                    <input id="msgLastPaymentDate" class="easyui-datebox" name="lastPaymentDate">
                </td>
            </tr>
        </table>
    </form>
</div>
<%--学员流失--%>
<div id="leaving_dialog">
    <form id="leaving_form" method="post">
        <input id="leaving_stuId" type="hidden" name="id">
        <table align="center" style="margin-top: 20px" cellspacing="10px" cellpadding="5px">
            <tr>
                <td>是否退款</td>
                <td>
                    <label>
                        <input type="radio" name="returnOrNot" value="1">
                        <span style="font-size: 12px">是</span>
                    </label>&nbsp;&nbsp;&nbsp;
                    <label>
                        <input type="radio" name="returnOrNot" value="0">
                        <span style="font-size: 12px">否</span>
                    </label>
                </td>
            </tr>
            <tr style="height: 20px;"></tr>
            <tr>
                <td>流失阶段</td>
                <td>
                    <select class="easyui-combobox" style="width: 150px; height: 28px;" name="loststep"
                            data-options="panelHeight:'auto'">
                        <option value="基础班">基础班</option>
                        <option value="大神班">大神班</option>
                    </select>
                </td>
            </tr>
            <tr style="height: 20px;"></tr>
            <tr id="drawBackAmount_tr">
                <td>退款金额</td>
                <td><input class="easyui-numberbox" name="drawBackAmount" style="width: 150px; height: 28px;"/>
                </td>
            </tr>
            <tr style="height: 20px;"></tr>
            <tr>
                <td>退学原因</td>
                <td>
                    <textarea name="lostcause" style="width: 150px;height: 60px"></textarea>
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="leaving_btns">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save_leaving">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel_leaving">取消</a>
</div>


</body>
</html>
